namespace my_set
{
	template<class K>
	class set
	{
		struct KeyOfSet
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
	public:
		typedef typename RBTree<K, K, KeyOfSet>::iterator iterator;
		typedef typename RBTree<K, K, KeyOfSet>::const_iterator const_iterator;

		iterator begin() { return _tree.begin(); }
		const_iterator begin() const { return _tree.begin(); }
		iterator end() { return _tree.end(); }
		const_iterator end() const { return _tree.end(); }

		pair<iterator, bool> insert(const K& key) { return _tree.insert(key); }
		iterator find(const K& k) { return _tree.find(k); }

	private:
		RBTree<K, K, KeyOfSet> _tree;
	};
}
